import uni from '@dcloudio/vite-plugin-uni'
import dotenv from 'dotenv'
import { defineConfig } from 'vite'

// https://vitejs.dev/config/
export default defineConfig({
  css: {
    preprocessorOptions: {
      scss: {
        quietDeps: true,
        silenceDeprecations: ['legacy-js-api'],
        api: "modern-compiler"
      }
    }
  },
  plugins: [
    uni(),
  ],
  define: {
    'process.env.UNI_APP_ENV': dotenv.config().parsed
  }
})
